# agent服务
FROM golang:1.17.7

# 设置debian国内源
ADD sources.list /etc/apt/

WORKDIR /go/src/app
COPY . .
ENV GOPROXY="https://goproxy.cn,direct"

# 安装压力测试工具
RUN apt-get update && apt-get install stress

RUN go mod download
RUN go build -o main test_client_report/client.go

CMD ["./main"]